home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / makefile.tlr < prev    next >
Encoding:
Makefile  |  1993-03-05  |  2.1 KB  |  88 lines

  1. ################ Beginning of makefile.tlr ################
  2. # Stuff that goes at the end of all the makefiles, but is not
  3. # configuration parameters should be in this file.  It is included
  4. # after makefile.src.
  5.  
  6. #config reads the configuration file and munches the appropriate make files
  7. config: doit
  8.     ${TOPDIR}/Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  9.  
  10. config-subdirs: doit
  11.     @-if test 'x$(DIRS)' != x ; then eval \
  12.         'for d in $(DIRS) ; do \
  13.             ( cd $$d ; \
  14.               echo Configuring ${HERE}$$d ; \
  15.               ${TOPDIR}/Configure "${CONFIG}" "${TOPDIR}" \
  16.                 "${HERE}$$d/" "${MFLAGS}" ) \
  17.         done' ; \
  18.     else \
  19.         true ; \
  20.     fi
  21.  
  22. doit:
  23.  
  24.  
  25. # Clean up installed stuff and binaries
  26. # pristine-pgm target invoked by pristine target in dirs that make programs
  27. pristine-pgm: clean-pgm
  28.     @-if test 'x$(PGMS)' != x ; then eval \
  29.         'for pgm in $(PGMS); do \
  30.             dpgm=`basename $$pgm .out`; \
  31.             echo rm -f $(DESTDIR)/$$dpgm ; \
  32.             rm -f $(DESTDIR)/$$dpgm ; \
  33.         done' ; \
  34.     else \
  35.         true ; \
  36.     fi
  37.  
  38. # Clean up binaries on program directories.
  39. clean-pgm:
  40.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) man-pgm libman-pgm
  41.  
  42. clean_all:
  43.     -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) *.a *-pgm Makefile
  44.  
  45. # Install program manual pages
  46. man-pgm: $(MANPAGES)
  47.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  48.     chmod u+w $(MANPAGES)
  49.     for i in $(MANPAGES) ; \
  50.     do \
  51.         cp $$i $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  52.     done
  53.     chmod u-w $(MANPAGES)
  54.     touch man-pgm
  55.  
  56. # Install library manual pages
  57. libman-pgm: $(MANPAGES)
  58.     @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
  59.     chmod u+w $(MANPAGES)
  60.     for i in $(MANPAGES) ; \
  61.     do \
  62.         cp $$i $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  63.     done
  64.     chmod u-w $(MANPAGES)
  65.     touch libman-pgm
  66.  
  67. # Uninstall program manual pages
  68. pristineman-pgm:
  69.     for i in $(MANPAGES) ; \
  70.     do \
  71.         rm -f $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
  72.     done
  73.     rm -f man-pgm
  74.  
  75. # Uninstall library manual pages
  76. pristinelibman-pgm:
  77.     for i in $(MANPAGES) ; \
  78.     do \
  79.         rm -f $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
  80.     done
  81.     rm -f libman-pgm
  82.  
  83. makefile:: makefile.src
  84.     ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  85.  
  86. ################ End of makefile.tlr ################
  87.